<?
   require_once('config.php');
   $vid_id = getValue('vid_id','int','POST',0);
   $per_id = getValue('per_id','int','POST',0);
   if($vid_id > 0 && $per_id > 0){
      
      $sql_insert = "INSERT IGNORE INTO
                              vid_per(vid_id,per_id)
                            VALUES(" . $vid_id . "," . $per_id . ")";
      mysql_query($sql_insert);
      
   }
?>